#!/bin/bash
cd $(dirname "$0")

chmod +x /opt/apm/analyze/dist/script/apm_broker
cp -f ./apm_broker.service /usr/lib/systemd/system
chmod 754 /usr/lib/systemd/system/apm_broker.service

systemctl enable apm_broker.service

systemctl daemon-reload
systemctl start apm_broker
